/**
 * Created by Taow on 2017/9/25.
 */
import Vue from 'vue'
import VueResource from 'vue-resource';
Vue.use(VueResource);

export default {
  getBloodInfo(data){
    return Vue.http.get("/xkopen/m/bloodpress/stats", {params:data});
  },
  getBloodSugar(data){
    return Vue.http.get("/xkopen/m/bloodglucose/stats", {params:data});
  },
  getPhrEcg(data) {
    return Vue.http.get("/xkopen/m/electrocardio/stats", {params:data});
  },
  getSleep(data){
    return Vue.http.get("/xkopen/m/sleep/stats", {params:data});
  },
  getHealthMonitorPageList(pageNum,pageSize,data){
    return Vue.http.post("/xkplat/m/checkInMemberPageList/"+pageNum+'/'+pageSize, data);
  },
  getMemberInfo(memberId){
    return Vue.http.get("/xkplat/m/memberBed/"+memberId);
  },
  getECGInfo(id){
    return Vue.http.get("/xkopen/m/electrocardio/"+id);
  },
}
